package com.didispace.chapter310.service.obs;

import com.google.common.eventbus.EventBus;

public class Test {
    public static void main(String[] args) {

        EventBus eventBus=new EventBus("myEvent");
        eventBus.register(new DataObserver1());
        eventBus.register(new DataObserver2());
        eventBus.register(new DataObserver3());
        eventBus.post("test");
        eventBus.post("1");
        eventBus.post(1);
    }
}
